package com_djm_2025_06_04;

/**
 * 演示this关键字的示例类,这是修改之后可以正常打印日期的
 *
 * @author dengjiangming
 * @version 1.0.0
 * @date    2025-06-04
 */
public class Date {
    public int year;

    public int month;

    public int day;

    public void setDate(Date this,int year,int month,int day) {
       this.year = year;
       this.month = month;
       this.day = day;
    }

    public void printDate() {
        System.out.println(year + "/" + month + "/" + day);
    }

    public static void main(String[] args) {
        Date date1 = new Date();
        date1.setDate(2025,6,1);
        date1.printDate();

        Date date2 = new Date();
        date2.setDate(2025,6,2);
        date2.printDate();

        Date date3 = new Date();
        date3.setDate(2025,6,3);
        date3.printDate();
    }

}
